package com.cleaningcloud.cld.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cleaningcloud.cld.mapper.CldProjectGroupMapper;
import com.cleaningcloud.cld.domain.CldProjectGroup;
import com.cleaningcloud.cld.service.ICldProjectGroupService;

/**
 * 项目组Service业务层处理
 * 
 * @author cleaningcloud
 * @date 2024-10-15
 */
@Service
public class CldProjectGroupServiceImpl implements ICldProjectGroupService 
{
    @Autowired
    private CldProjectGroupMapper cldProjectGroupMapper;

    /**
     * 查询项目组
     * 
     * @param projectGroupId 项目组主键
     * @return 项目组
     */
    @Override
    public CldProjectGroup selectCldProjectGroupByProjectGroupId(Long projectGroupId)
    {
        return cldProjectGroupMapper.selectCldProjectGroupByProjectGroupId(projectGroupId);
    }

    /**
     * 查询项目组列表
     * 
     * @param cldProjectGroup 项目组
     * @return 项目组
     */
    @Override
    public List<CldProjectGroup> selectCldProjectGroupList(CldProjectGroup cldProjectGroup)
    {
        return cldProjectGroupMapper.selectCldProjectGroupList(cldProjectGroup);
    }

    /**
     * 新增项目组
     * 
     * @param cldProjectGroup 项目组
     * @return 结果
     */
    @Override
    public int insertCldProjectGroup(CldProjectGroup cldProjectGroup)
    {
        return cldProjectGroupMapper.insertCldProjectGroup(cldProjectGroup);
    }

    /**
     * 修改项目组
     * 
     * @param cldProjectGroup 项目组
     * @return 结果
     */
    @Override
    public int updateCldProjectGroup(CldProjectGroup cldProjectGroup)
    {
        return cldProjectGroupMapper.updateCldProjectGroup(cldProjectGroup);
    }

    /**
     * 批量删除项目组
     * 
     * @param projectGroupIds 需要删除的项目组主键
     * @return 结果
     */
    @Override
    public int deleteCldProjectGroupByProjectGroupIds(Long[] projectGroupIds)
    {
        return cldProjectGroupMapper.deleteCldProjectGroupByProjectGroupIds(projectGroupIds);
    }

    /**
     * 删除项目组信息
     * 
     * @param projectGroupId 项目组主键
     * @return 结果
     */
    @Override
    public int deleteCldProjectGroupByProjectGroupId(Long projectGroupId)
    {
        return cldProjectGroupMapper.deleteCldProjectGroupByProjectGroupId(projectGroupId);
    }
}
